<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCollectionResumeCheck extends Migration{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up(){
        Schema::create('collection_resume_check', function(Blueprint $table){
            $table->engine = 'MyISAM';
            $table->increments('id')->unsigned()->comment('自动增长主键');;
            $table->integer('resume_id')->unsigned()->index('com_uid')->default(0)->comment('所属简历id');
            $table->string('source', 255)->default('')->comment('采集网站地址');
            $table->timestamp('created_at')->nullable()->comment('添加时间');;
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down(){
        Schema::drop('collection_resume_check');
    }
}
